<template>
	<view class="contact">
		<image class="i" src="https://www.itcast.cn/2018czydz/images/gywmban.jpg"></image>

		<view class="info">
			<view @click="phone">联系电话：12345678901 （点击拨打）</view>
			<view>地址：广州市天河区中山大道西192号</view>
		</view>
		<map class="mp" :latitude="latitude" :longitude="longitude" :markers="markers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				latitude: 23.139366,
				longitude: 113.368051,
				markers: [{
					id:1,
					width:27,
					height:30,
					latitude: 23.139366,
					longitude: 113.368051,
					iconPath: '../../static/hmlogo.png'
				}]
			}
		},
		methods: {
			phone(){
				uni.makePhoneCall({
					phoneNumber:12345678901
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.contact {
		.i {
			width: 750rpx;
			height: 320rpx;

		}

		.info {
			padding: 10rpx 20rpx;
			font-size: 30rpx;

			view {
				line-height: 68rpx;
				border-bottom: 1px solid #eee;
			}
		}

		.mp {
			width: 750rpx;
			height: 750rpx;
		}
	}
</style>
